package com.hl.ruoyizmhshop.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hl.ruoyizmhshop.mapper.AppraiseMapper;
import com.hl.ruoyizmhshop.domain.Appraise;
import com.hl.ruoyizmhshop.service.IAppraiseService;

/**
 * 评价管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-09
 */
@Service
public class AppraiseServiceImpl implements IAppraiseService 
{
    @Autowired
    private AppraiseMapper appraiseMapper;

    /**
     * 查询评价管理
     * 
     * @param appraiseId 评价管理主键
     * @return 评价管理
     */
    @Override
    public Appraise selectAppraiseByAppraiseId(Integer appraiseId)
    {
        return appraiseMapper.selectAppraiseByAppraiseId(appraiseId);
    }

    /**
     * 查询评价管理列表
     * 
     * @param appraise 评价管理
     * @return 评价管理
     */
    @Override
    public List<Appraise> selectAppraiseList(Appraise appraise)
    {
        return appraiseMapper.selectAppraiseList(appraise);
    }

    /**
     * 新增评价管理
     * 
     * @param appraise 评价管理
     * @return 结果
     */
    @Override
    public int insertAppraise(Appraise appraise)
    {
        return appraiseMapper.insertAppraise(appraise);
    }

    /**
     * 修改评价管理
     * 
     * @param appraise 评价管理
     * @return 结果
     */
    @Override
    public int updateAppraise(Appraise appraise)
    {
        return appraiseMapper.updateAppraise(appraise);
    }

    /**
     * 批量删除评价管理
     * 
     * @param appraiseIds 需要删除的评价管理主键
     * @return 结果
     */
    @Override
    public int deleteAppraiseByAppraiseIds(Integer[] appraiseIds)
    {
        return appraiseMapper.deleteAppraiseByAppraiseIds(appraiseIds);
    }

    /**
     * 删除评价管理信息
     * 
     * @param appraiseId 评价管理主键
     * @return 结果
     */
    @Override
    public int deleteAppraiseByAppraiseId(Integer appraiseId)
    {
        return appraiseMapper.deleteAppraiseByAppraiseId(appraiseId);
    }
}
